<?php
include("sessionUser.php");
    include("Conexao.php");
    $conexao = new Conexao();
   
    $con = $conexao->conectBD();

// apenas insere o amigo 
  if($_GET["id"]){
            echo $$_GET["id"];
           $result = pg_prepare($con, "my_query", 'INSERT INTO tbAmigos_equipe05 VALUES ($1,$2)');

           $result = pg_execute($con, "my_query", array($_SESSION["id"],$_GET["id"])) or die ("Erro Ao Inserir os Dados");
header("Location:indexUser.php?link=2");
  }

$conexao->desconectBD();
?>
